header {
  @include container;
  height: 65px;
  margin: 0;
  position: relative;
  z-index: 1;
  background: $dark-gray;

  &.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: $dark-gray;

    .container {
      animation-delay: 0s;
      animation-duration: 0s;
    }
  }

  @include breakpoint($break-tablet) {
    height: 105px;
  }

  .container {
    @include container;
    height: 65px;
    animation-delay: .8s;
    animation-duration: .5s;
    padding: 0 gutter();

    @include breakpoint($break-tablet) {
      @include container(14 of 16);
      padding: 0;
      margin: 0 span(1 of 16);
    }

    @include breakpoint($max-width) {
      @include container(16 of 16);
      max-width: $max-width;
    }
  }

  .logo-link {
    margin-top: 14px;
    float: left;
    z-index: 997;
    position: absolute;
  }

  .logo {
    width: 100px;
  }

  nav {
    margin-top: 20px;
    float: right;
    display: none;

    @include breakpoint($break-tablet) {
      display: block;
    }
  }

  nav a {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
  }

  nav ul {
    list-style: none;
  }

  nav li {
    float: left;
    margin-right: 30px;
  }

  nav li a {
    opacity: .7;
    transition: opacity .2s ease-in-out;
  }

  nav li a:hover {
    color: white;
    opacity: 1;
  }

  nav li.active a {
    opacity: 1;
  }

  .subheader-block {
    @include span(4);

    background: $lighter-gray;
    background-size: cover;
    margin: 0 auto 0 auto;
    text-align: center;

    @include breakpoint($break-tablet) {
      height: 40px;
      padding-top: 6px;
      padding-bottom: 6px;
    }

    span {
      display: none;

      @include breakpoint($break-tablet)
      {
        display: block;
      }
    }

    .link-button-bar {
      background: $lighter-gray;
      margin: 0 auto 0px auto;
      text-align: center;

      .button-container {
        @include container;
        @include break;

        float: none;
        margin: 0 auto;
      }

      .button {
        display: inline-block;
        color: $dark-gray;
        border: none;
        width: 20%;
        max-width: 150px;
        height: auto;
        padding: 0;
      }

      .button-large {
        padding: 0 auto;
      }

      .button:hover {
        color: white;
        background-color: $light-gray;
      }
    }
  }
}

.mobile-nav {
  display: none;
  font-size: 24px;
  line-height: 60px;
  z-index: 998;
  background: rgba(0, 0, 0, .9);
  text-align: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;


  ul {
    margin-top: 30%;
  }

  a {
    color: white;

    &:hover {
      color: $light-blue;
    }

    &.button {
      font-size: 20px;
    }
  }

  &.visible {
    display: block;
  }
}

.menu-toggle {
  position: absolute;
  top: 30px;
  right: 20px;
  cursor: pointer;
  z-index: 999;
  height: 35px;

  &.fixed {
    position: fixed;
  }

  .menubars {
    width: 25px;
    height: 30px;
    position: relative;
    transition: top 0.3s ease-in-out;
    background: white;

    &:before,
    &:after {
      background: white;
      content: '';
      display: block;
      width: 25px;
      height: 1px;
      position: absolute;
      z-index: -1;
      transition: all 0.3s ease-in-out;
      zoom: 1;
    }
  }

  &.open {
    float: right;
    color: white;

    .menubars {
      height: 1px;

      &:before {
        top: -8px;
      }

      &:after {
        top: 8px;
      }
    }
    @include breakpoint($break-tablet) {
      display: none;
    }
  }

  &.close {

    .menubars {
      background: transparent;
      &:before {
        transform: rotate(-45deg);
        top: 0;
      }

      &:after {
        transform: rotate(45deg);
        top: 0;
      }
    }
  }
}

.header-block {
  margin-top: 0;//-65px;
  padding-top: 0;//105px;
}